/* 设备卡片样式 */
.device-card {
    width: 100%;
    background: white;
    border-radius: 24rpx;
    box-shadow: 0 8rpx 32rpx rgba(0,0,0,0.08);
    padding: 30rpx;
    box-sizing: border-box;
    margin-top: 20rpx;
    overflow: hidden;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20rpx;
}

.device-item {
    background: #fff;
    border-radius: 18rpx;
    padding: 25rpx;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.device-icon-container {
    width: 100rpx;
    height: 100rpx;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20rpx;
    transition: background-color 0.3s ease;
}

.device-icon {
    width: 50rpx;
    height: 50rpx;
    transition: filter 0.3s ease;
}

.device-name {
    font-size: 28rpx;
    font-weight: 500;
    color: #333;
    margin-bottom: 8rpx;
}

.device-status {
    font-size: 24rpx;
    margin-bottom: 15rpx;
    transition: color 0.3s ease;
}

.device-toggle {
    width: 80rpx;
    height: 40rpx;
    background-color: #e0e0e0;
    border-radius: 20rpx;
    position: relative;
    transition: background-color 0.3s ease;
}

.device-toggle.active {
    background-color: #4caf50;
}

.toggle-circle {
    width: 36rpx;
    height: 36rpx;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2rpx;
    left: 2rpx;
    transition: transform 0.3s ease;
    box-shadow: 0 2rpx 4rpx rgba(0,0,0,0.2);
}

.device-toggle.active .toggle-circle {
    transform: translateX(40rpx);
}